﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 委外领料AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class PMIssueDocAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public PMIssueDocAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
		
					IssueDirection= 0; 
				
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.Org != null) 
			{
				this.Org.DoSerializeKeyList(dict);
			}
	        			if (this.IssueOrg != null) 
			{
				this.IssueOrg.DoSerializeKeyList(dict);
			}
	        			if (this.IssueDocType != null) 
			{
				this.IssueDocType.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.IssueDocLines!=null)
			{
				foreach(ufida.u9.ait.openapi.IssueDocLinesAITDTOData objdata in this.IssueDocLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        			if (this.HandleDept != null) 
			{
				this.HandleDept.DoSerializeKeyList(dict);
			}
	        			if (this.HandlePerson != null) 
			{
				this.HandlePerson.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public PMIssueDocAITDTOData(  ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData org  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData issueOrg  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData issueDocType  , System.String docNo  , System.String businessDate  , List<ufida.u9.ait.openapi.IssueDocLinesAITDTOData> issueDocLines  , System.Int32 issueDirection  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData handleDept  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData handlePerson  )
		{
			initData();
			this.Org = org;
			this.IssueOrg = issueOrg;
			this.IssueDocType = issueDocType;
			this.DocNo = docNo;
			this.BusinessDate = businessDate;
			this.IssueDocLines = issueDocLines;
			this.IssueDirection = issueDirection;
			this.DescFlexField = descFlexField;
			this.HandleDept = handleDept;
			this.HandlePerson = handlePerson;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 组织
		/// 委外领料AITDTO.Misc.组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_org ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Org
		{
			get	
			{	
				return m_org ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
			
		

		/// <summary>
		/// 发料组织
		/// 委外领料AITDTO.Misc.发料组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_issueOrg ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData IssueOrg
		{
			get	
			{	
				return m_issueOrg ;
			}
			set	
			{	
				m_issueOrg = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据类型
		/// 委外领料AITDTO.Misc.单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_issueDocType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData IssueDocType
		{
			get	
			{	
				return m_issueDocType ;
			}
			set	
			{	
				m_issueDocType = value ;	
			}
		}
			
		

		/// <summary>
		/// 单号
		/// 委外领料AITDTO.Misc.单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务日期
		/// 委外领料AITDTO.Misc.业务日期
		/// </summary>
		private System.String m_businessDate ;
		[DataMember(IsRequired=false)]
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 领料明细
		/// 委外领料AITDTO.Misc.领料明细
		/// </summary>
		private List<ufida.u9.ait.openapi.IssueDocLinesAITDTOData> m_issueDocLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.IssueDocLinesAITDTOData> IssueDocLines
		{
			get	
			{	
				if (m_issueDocLines == null )
				{
					List<ufida.u9.ait.openapi.IssueDocLinesAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.IssueDocLinesAITDTOData>() ;
					m_issueDocLines = n_m_list ;
				}
				return m_issueDocLines ;
			}
			set	
			{	
				m_issueDocLines = value ;	
			}
		}
			
		

		/// <summary>
		/// 领退类型
		/// 委外领料AITDTO.Misc.领退类型
		/// </summary>
		private System.Int32 m_issueDirection ;
		[DataMember(IsRequired=false)]
		public System.Int32 IssueDirection
		{
			get	
			{	
				return m_issueDirection ;
			}
			set	
			{	
				m_issueDirection = value ;	
			}
		}
			
		

		/// <summary>
		/// 扩展字段集合
		/// 委外领料AITDTO.Misc.扩展字段集合
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 发料部门
		/// 委外领料AITDTO.Misc.发料部门
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_handleDept ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData HandleDept
		{
			get	
			{	
				return m_handleDept ;
			}
			set	
			{	
				m_handleDept = value ;	
			}
		}
			
		

		/// <summary>
		/// 发料人
		/// 委外领料AITDTO.Misc.发料人
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_handlePerson ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData HandlePerson
		{
			get	
			{	
				return m_handlePerson ;
			}
			set	
			{	
				m_handlePerson = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																				
		#endregion 
	} 	
}
